.PHONY: repo-support-test
repo-support-test:
	@echo "$@: 已支持 repo 模块"

# ------- manual macro extend ------- #
.ONESHELL:
.PHONY: enter-manifests
.EXPORT_ALL_VARIABLES: enter-manifests
enter-manifests:
	cd .repo/manifests && bash

# ---------- git repo config ---------- #
.ONESHELL:
.PHONY: config-git-credential-helper
.EXPORT_ALL_VARIABLES: config-git-credential-helper
config-git-credential-helper:
	repo forall -c git config credential.helper store
	cd .repo/manifests
	git config credential.helper store

# ----------- build-scripts ----------- #
.ONESHELL:
.PHONY: go-buildscripts
.EXPORT_ALL_VARIABLES: go-buildscripts
go-buildscripts:
	@cd build-scripts
	@bash

.ONESHELL:
.PHONY: push-build-scripts
.EXPORT_ALL_VARIABLES: push-build-scripts
push-build-scripts:
	cd build-scripts
	git push origin master:master